﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C57 RID: 3159
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class NewMailScNotify : IMessage<NewMailScNotify>, IMessage, IEquatable<NewMailScNotify>, IDeepCloneable<NewMailScNotify>, IBufferMessage
	{
		// Token: 0x170027C9 RID: 10185
		// (get) Token: 0x06008D35 RID: 36149 RVA: 0x001772B0 File Offset: 0x001754B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<NewMailScNotify> Parser
		{
			get
			{
				return NewMailScNotify._parser;
			}
		}

		// Token: 0x170027CA RID: 10186
		// (get) Token: 0x06008D36 RID: 36150 RVA: 0x001772B7 File Offset: 0x001754B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return NewMailScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170027CB RID: 10187
		// (get) Token: 0x06008D37 RID: 36151 RVA: 0x001772C9 File Offset: 0x001754C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return NewMailScNotify.Descriptor;
			}
		}

		// Token: 0x06008D38 RID: 36152 RVA: 0x001772D0 File Offset: 0x001754D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NewMailScNotify()
		{
		}

		// Token: 0x06008D39 RID: 36153 RVA: 0x001772E3 File Offset: 0x001754E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NewMailScNotify(NewMailScNotify other) : this()
		{
			this.mailIdList_ = other.mailIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008D3A RID: 36154 RVA: 0x0017730D File Offset: 0x0017550D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NewMailScNotify Clone()
		{
			return new NewMailScNotify(this);
		}

		// Token: 0x170027CC RID: 10188
		// (get) Token: 0x06008D3B RID: 36155 RVA: 0x00177315 File Offset: 0x00175515
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> MailIdList
		{
			get
			{
				return this.mailIdList_;
			}
		}

		// Token: 0x06008D3C RID: 36156 RVA: 0x0017731D File Offset: 0x0017551D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as NewMailScNotify);
		}

		// Token: 0x06008D3D RID: 36157 RVA: 0x0017732B File Offset: 0x0017552B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(NewMailScNotify other)
		{
			return other != null && (other == this || (this.mailIdList_.Equals(other.mailIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008D3E RID: 36158 RVA: 0x00177360 File Offset: 0x00175560
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.mailIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008D3F RID: 36159 RVA: 0x00177394 File Offset: 0x00175594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008D40 RID: 36160 RVA: 0x0017739C File Offset: 0x0017559C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008D41 RID: 36161 RVA: 0x001773A5 File Offset: 0x001755A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.mailIdList_.WriteTo(ref output, NewMailScNotify._repeated_mailIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008D42 RID: 36162 RVA: 0x001773CC File Offset: 0x001755CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.mailIdList_.CalculateSize(NewMailScNotify._repeated_mailIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008D43 RID: 36163 RVA: 0x00177405 File Offset: 0x00175605
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(NewMailScNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.mailIdList_.Add(other.mailIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008D44 RID: 36164 RVA: 0x00177433 File Offset: 0x00175633
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008D45 RID: 36165 RVA: 0x0017743C File Offset: 0x0017563C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U && num != 42U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.mailIdList_.AddEntriesFrom(ref input, NewMailScNotify._repeated_mailIdList_codec);
				}
			}
		}

		// Token: 0x040035E4 RID: 13796
		private static readonly MessageParser<NewMailScNotify> _parser = new MessageParser<NewMailScNotify>(() => new NewMailScNotify());

		// Token: 0x040035E5 RID: 13797
		private UnknownFieldSet _unknownFields;

		// Token: 0x040035E6 RID: 13798
		public const int MailIdListFieldNumber = 5;

		// Token: 0x040035E7 RID: 13799
		private static readonly FieldCodec<uint> _repeated_mailIdList_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x040035E8 RID: 13800
		private readonly RepeatedField<uint> mailIdList_ = new RepeatedField<uint>();
	}
}
